home *** CD-ROM | disk | FTP | other *** search
/ MacHome 2001 January / MacHome Magazine Demo Disc January 2001.iso / mac / Software / Utilities / Red Bird's Quick Scripts.sea / Red Bird's Quick Scripts / Simple Sync / Simple Sync.as < prev   
MacBinary  |  2000-05-07  |  5.5 KB  |  [TEXT/ToyS]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: MacBinary (archive/macBinary).

You can browse this item here: Simple Sync.as

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Audio Sculpture Module (music/audioSculpture) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert WinAsks Player compiled app (other/winAsksPlayerCompiledApp) ext Unsupported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, Sun May 7 11:31:34 2000, modified Sun May 7 11:31:34 2000, creator 'ToyS', type ASCII, 4745 bytes "Simple Sync.as" , at 0x1309 524 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[ToyS]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0e 53 69 6d 70 6c 65 | 20 53 79 6e 63 2e 61 73 |..Simple| Sync.as|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 54 6f 79 | 53 00 00 00 00 00 00 00 |.TEXTToy|S.......|
|00000050| 00 00 00 00 00 12 89 00 | 00 02 0c b5 3b 3c d6 b5 |........|....;<..|
|00000060| 3b 3c d6 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |;<......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 3b 0b 00 00 |........|....;...|
|00000080| 28 2a 0d 53 69 6d 70 6c | 65 20 53 79 6e 63 20 30 |(*.Simpl|e Sync 0|
|00000090| 2e 33 2e 31 3a 20 20 54 | 61 6b 65 20 61 6e 79 20 |.3.1: T|ake any |
|000000a0| 6e 75 6d 62 65 72 20 6f | 66 20 66 6f 6c 64 65 72 |number o|f folder|
|000000b0| 73 20 61 6e 64 20 6d 61 | 6b 65 20 74 68 65 6d 20 |s and ma|ke them |
|000000c0| 6d 61 74 63 68 20 75 70 | 2c 20 62 79 20 77 61 79 |match up|, by way|
|000000d0| 20 6f 66 20 63 72 65 61 | 74 69 6e 67 20 61 20 6e | of crea|ting a n|
|000000e0| 65 77 20 66 6f 6c 64 65 | 72 20 77 69 74 68 20 74 |ew folde|r with t|
|000000f0| 68 65 20 6d 6f 73 74 20 | 75 70 20 74 6f 20 64 61 |he most |up to da|
|00000100| 74 65 20 66 69 6c 65 73 | 20 69 6e 20 69 74 2e 0d |te files| in it..|
|00000110| 43 6f 70 79 72 69 67 68 | 74 20 28 43 29 20 31 39 |Copyrigh|t (C) 19|
|00000120| 39 39 20 47 6f 72 64 6f | 6e 20 57 6f 72 6c 65 79 |99 Gordo|n Worley|
|00000130| 2e 0d 0d 54 68 69 73 20 | 70 72 6f 67 72 61 6d 20 |...This |program |
|00000140| 69 73 20 66 72 65 65 20 | 73 6f 66 74 77 61 72 65 |is free |software|
|00000150| 3b 20 79 6f 75 20 63 61 | 6e 20 72 65 64 69 73 74 |; you ca|n redist|
|00000160| 72 69 62 75 74 65 20 69 | 74 20 61 6e 64 2f 6f 72 |ribute i|t and/or|
|00000170| 20 6d 6f 64 69 66 79 20 | 69 74 20 75 6e 64 65 72 | modify |it under|
|00000180| 20 74 68 65 20 74 65 72 | 6d 73 20 6f 66 20 74 68 | the ter|ms of th|
|00000190| 65 20 47 4e 55 20 47 65 | 6e 65 72 61 6c 20 50 75 |e GNU Ge|neral Pu|
|000001a0| 62 6c 69 63 20 4c 69 63 | 65 6e 73 65 20 61 73 20 |blic Lic|ense as |
|000001b0| 70 75 62 6c 69 73 68 65 | 64 20 62 79 20 74 68 65 |publishe|d by the|
|000001c0| 20 46 72 65 65 20 53 6f | 66 74 77 61 72 65 20 46 | Free So|ftware F|
|000001d0| 6f 75 6e 64 61 74 69 6f | 6e 3b 20 65 69 74 68 65 |oundatio|n; eithe|
|000001e0| 72 20 76 65 72 73 69 6f | 6e 20 32 20 6f 66 20 74 |r versio|n 2 of t|
|000001f0| 68 65 20 4c 69 63 65 6e | 73 65 2c 20 6f 72 20 61 |he Licen|se, or a|
|00000200| 6e 79 20 6c 61 74 65 72 | 20 76 65 72 73 69 6f 6e |ny later| version|
|00000210| 2e 0d 0d 54 68 69 73 20 | 70 72 6f 67 72 61 6d 20 |...This |program |
|00000220| 69 73 20 64 69 73 74 72 | 69 62 75 74 65 64 20 69 |is distr|ibuted i|
|00000230| 6e 20 74 68 65 20 68 6f | 70 65 20 74 68 61 74 20 |n the ho|pe that |
|00000240| 69 74 20 77 69 6c 6c 20 | 62 65 20 75 73 65 66 75 |it will |be usefu|
|00000250| 6c 2c 20 62 75 74 20 57 | 49 54 48 4f 55 54 20 41 |l, but W|ITHOUT A|
|00000260| 4e 59 20 57 41 52 52 41 | 4e 54 59 3b 20 77 69 74 |NY WARRA|NTY; wit|
|00000270| 68 6f 75 74 20 65 76 65 | 6e 20 74 68 65 20 69 6d |hout eve|n the im|
|00000280| 70 6c 69 65 64 20 77 61 | 72 72 61 6e 74 79 20 6f |plied wa|rranty o|
|00000290| 66 20 4d 45 52 43 48 41 | 4e 54 41 42 49 4c 49 54 |f MERCHA|NTABILIT|
|000002a0| 59 20 6f 72 20 46 49 54 | 4e 45 53 53 20 46 4f 52 |Y or FIT|NESS FOR|
|000002b0| 20 41 20 50 41 52 54 49 | 43 55 4c 41 52 20 50 55 | A PARTI|CULAR PU|
|000002c0| 52 50 4f 53 45 2e 20 53 | 65 65 20 74 68 65 20 47 |RPOSE. S|ee the G|
|000002d0| 4e 55 20 47 65 6e 65 72 | 61 6c 20 50 75 62 6c 69 |NU Gener|al Publi|
|000002e0| 63 20 4c 69 63 65 6e 73 | 65 20 66 6f 72 20 6d 6f |c Licens|e for mo|
|000002f0| 72 65 20 64 65 74 61 69 | 6c 73 2e 0d 0d 46 6f 72 |re detai|ls...For|
|00000300| 20 61 20 63 6f 70 79 20 | 6f 66 20 74 68 65 20 47 | a copy |of the G|
|00000310| 4e 55 20 47 65 6e 65 72 | 61 6c 20 50 75 62 6c 69 |NU Gener|al Publi|
|00000320| 63 20 4c 69 63 65 6e 73 | 65 2c 20 76 69 73 69 74 |c Licens|e, visit|
|00000330| 20 3c 68 74 74 70 3a 2f | 2f 77 77 77 2e 67 6e 75 | <http:/|/www.gnu|
|00000340| 2e 6f 72 67 2f 3e 20 6f | 72 20 77 72 69 74 65 20 |.org/> o|r write |
|00000350| 74 6f 20 74 68 65 20 46 | 72 65 65 20 53 6f 66 74 |to the F|ree Soft|
|00000360| 77 61 72 65 20 46 6f 75 | 6e 64 61 74 69 6f 6e 2c |ware Fou|ndation,|
|00000370| 20 49 6e 63 2e 2c 20 35 | 39 20 54 65 6d 70 6c 65 | Inc., 5|9 Temple|
|00000380| 20 50 6c 61 63 65 2d 2d | 53 75 69 74 65 20 33 33 | Place--|Suite 33|
|00000390| 30 2c 20 42 6f 73 74 6f | 6e 2c 20 4d 41 20 30 32 |0, Bosto|n, MA 02|
|000003a0| 31 31 31 2d 31 33 30 37 | 2c 20 55 53 41 2e 0d 0d |111-1307|, USA...|
|000003b0| 54 6f 20 63 6f 6e 74 61 | 63 74 20 6d 65 2c 20 70 |To conta|ct me, p|
|000003c0| 6c 65 61 73 65 20 76 69 | 73 69 74 20 6d 79 20 57 |lease vi|sit my W|
|000003d0| 65 62 20 73 69 74 65 20 | 61 74 20 3c 68 74 74 70 |eb site |at <http|
|000003e0| 3a 2f 2f 77 77 77 2e 72 | 62 69 73 6c 61 6e 64 2e |://www.r|bisland.|
|000003f0| 63 78 2f 3e 20 6f 72 20 | 65 2d 6d 61 69 6c 20 6d |cx/> or |e-mail m|
|00000400| 65 20 61 74 20 3c 72 65 | 64 62 69 72 64 40 72 62 |e at <re|dbird@rb|
|00000410| 69 73 6c 61 6e 64 2e 63 | 78 3e 2e 0d 0d 48 69 73 |island.c|x>...His|
|00000420| 74 6f 72 79 3a 0d 0d 30 | 2e 33 2e 31 20 2d 20 46 |tory:..0|.3.1 - F|
|00000430| 69 78 65 64 20 74 68 65 | 20 62 75 67 20 61 6e 64 |ixed the| bug and|
|00000440| 20 62 75 6d 70 65 64 20 | 74 68 65 20 6e 75 6d 62 | bumped |the numb|
|00000450| 65 72 20 74 6f 20 72 65 | 66 6c 65 63 74 20 74 68 |er to re|flect th|
|00000460| 65 20 66 61 63 74 20 74 | 68 61 74 20 61 20 66 65 |e fact t|hat a fe|
|00000470| 77 20 63 68 61 6e 67 65 | 73 20 77 65 72 65 20 6d |w change|s were m|
|00000480| 61 64 65 20 64 75 72 69 | 6e 67 20 74 68 65 20 62 |ade duri|ng the b|
|00000490| 65 74 61 73 2e 0d 30 2e | 33 62 31 20 2d 20 44 69 |etas..0.|3b1 - Di|
|000004a0| 64 6e 27 74 20 66 69 78 | 20 74 68 65 20 62 75 67 |dn't fix| the bug|
|000004b0| 2c 20 74 68 75 73 20 74 | 68 65 20 62 65 74 61 20 |, thus t|he beta |
|000004c0| 73 74 61 74 75 73 2e 20 | 20 44 69 64 20 6d 61 6b |status. | Did mak|
|000004d0| 65 20 74 68 65 20 6f 70 | 65 6e 20 68 61 6e 64 6c |e the op|en handl|
|000004e0| 65 72 20 77 6f 72 6b 2c | 20 74 68 6f 75 67 68 2e |er work,| though.|
|000004f0| 20 20 41 6c 73 6f 20 63 | 68 61 6e 67 65 64 20 27 | Also c|hanged '|
|00000500| 6d 65 27 73 27 20 74 6f | 20 27 6d 79 27 20 74 6f |me's' to| 'my' to|
|00000510| 20 66 75 72 74 68 65 72 | 20 70 72 6f 6d 6f 74 65 | further| promote|
|00000520| 20 45 6e 67 6c 69 73 68 | 2d 6c 69 6b 65 20 63 6f | English|-like co|
|00000530| 64 65 2e 0d 30 2e 33 62 | 30 20 2d 20 4d 75 63 68 |de..0.3b|0 - Much|
|00000540| 20 6f 66 20 74 68 65 20 | 63 6f 64 65 20 68 61 73 | of the |code has|
|00000550| 20 62 65 65 6e 20 63 68 | 61 6e 67 65 64 20 61 72 | been ch|anged ar|
|00000560| 6f 75 6e 64 2e 20 20 45 | 76 65 72 79 20 74 68 69 |ound. E|very thi|
|00000570| 6e 67 20 73 65 65 6d 73 | 20 74 6f 20 77 6f 72 6b |ng seems| to work|
|00000580| 20 6e 6f 77 2c 20 62 75 | 74 20 73 6f 6d 65 74 69 | now, bu|t someti|
|00000590| 6d 65 73 20 49 20 67 65 | 74 20 61 6e 20 65 72 72 |mes I ge|t an err|
|000005a0| 6f 72 20 69 6e 20 73 79 | 6e 63 28 29 20 74 68 61 |or in sy|nc() tha|
|000005b0| 74 20 49 27 76 65 20 6e | 6f 74 65 64 20 62 65 6c |t I've n|oted bel|
|000005c0| 6f 77 2e 0d 30 2e 31 2e | 35 20 2d 20 43 6f 6d 6d |ow..0.1.|5 - Comm|
|000005d0| 65 6e 74 65 64 20 74 68 | 65 20 63 6f 64 65 20 73 |ented th|e code s|
|000005e0| 6f 20 74 68 61 74 20 6f | 74 68 65 72 73 20 77 69 |o that o|thers wi|
|000005f0| 6c 6c 20 62 65 20 61 62 | 6c 65 20 74 6f 20 6d 61 |ll be ab|le to ma|
|00000600| 6b 65 20 73 6f 6d 65 20 | 73 65 6e 73 65 20 6f 75 |ke some |sense ou|
|00000610| 74 20 6f 66 20 69 74 2e | 0d 30 2e 31 20 2d 20 41 |t of it.|.0.1 - A|
|00000620| 64 64 65 64 20 73 75 70 | 70 6f 72 74 20 66 6f 72 |dded sup|port for|
|00000630| 20 72 65 73 79 6e 63 69 | 6e 67 20 74 68 65 20 6f | resynci|ng the o|
|00000640| 72 69 67 69 6e 61 6c 20 | 66 6f 6c 64 65 72 73 20 |riginal |folders |
|00000650| 75 73 65 64 20 69 6e 20 | 6d 61 6b 69 6e 67 20 73 |used in |making s|
|00000660| 79 6e 63 65 64 46 6f 6c | 64 65 72 20 61 6e 64 20 |yncedFol|der and |
|00000670| 64 65 6c 65 74 69 6e 67 | 20 73 79 6e 63 65 64 46 |deleting| syncedF|
|00000680| 6f 6c 64 65 72 20 77 68 | 65 6e 20 64 6f 6e 65 20 |older wh|en done |
|00000690| 77 69 74 68 20 69 74 2e | 0d 30 2e 30 20 2d 20 49 |with it.|.0.0 - I|
|000006a0| 6e 69 74 69 61 6c 20 72 | 65 6c 65 61 73 65 2e 0d |nitial r|elease..|
|000006b0| 2a 29 0d 0d 6f 6e 20 72 | 75 6e 0d 09 74 72 79 0d |*)..on r|un..try.|
|000006c0| 09 09 73 65 74 20 66 6f | 6c 64 65 72 31 20 74 6f |..set fo|lder1 to|
|000006d0| 20 63 68 6f 6f 73 65 20 | 66 6f 6c 64 65 72 20 77 | choose |folder w|
|000006e0| 69 74 68 20 70 72 6f 6d | 70 74 20 22 43 68 6f 6f |ith prom|pt "Choo|
|000006f0| 73 65 20 66 69 72 73 74 | 20 66 6f 6c 64 65 72 20 |se first| folder |
|00000700| 74 6f 20 73 79 6e 63 3a | 22 0d 09 6f 6e 20 65 72 |to sync:|"..on er|
|00000710| 72 6f 72 20 2d 2d 75 73 | 65 72 20 70 72 6f 62 61 |ror --us|er proba|
|00000720| 62 6c 79 20 70 72 65 73 | 73 65 64 20 63 61 6e 63 |bly pres|sed canc|
|00000730| 6c 65 20 61 6e 64 20 77 | 61 6e 74 73 20 74 6f 20 |le and w|ants to |
|00000740| 65 78 69 74 20 74 68 65 | 20 70 72 6f 67 72 61 6d |exit the| program|
|00000750| 0d 09 09 72 65 74 75 72 | 6e 0d 09 65 6e 64 20 74 |...retur|n..end t|
|00000760| 72 79 0d 09 74 72 79 0d | 09 09 73 65 74 20 66 6f |ry..try.|..set fo|
|00000770| 6c 64 65 72 32 20 74 6f | 20 63 68 6f 6f 73 65 20 |lder2 to| choose |
|00000780| 66 6f 6c 64 65 72 20 77 | 69 74 68 20 70 72 6f 6d |folder w|ith prom|
|00000790| 70 74 20 22 43 68 6f 6f | 73 65 20 73 65 63 6f 6e |pt "Choo|se secon|
|000007a0| 64 20 66 6f 6c 64 65 72 | 20 74 6f 20 73 79 6e 63 |d folder| to sync|
|000007b0| 3a 22 0d 09 6f 6e 20 65 | 72 72 6f 72 0d 09 09 72 |:"..on e|rror...r|
|000007c0| 65 74 75 72 6e 0d 09 65 | 6e 64 20 74 72 79 0d 09 |eturn..e|nd try..|
|000007d0| 6d 79 20 61 75 74 6f 53 | 79 6e 63 28 7b 66 6f 6c |my autoS|ync({fol|
|000007e0| 64 65 72 31 2c 20 66 6f | 6c 64 65 72 32 7d 29 0d |der1, fo|lder2}).|
|000007f0| 65 6e 64 20 72 75 6e 0d | 0d 6f 6e 20 6f 70 65 6e |end run.|.on open|
|00000800| 20 74 68 65 46 6f 6c 64 | 65 72 73 0d 09 72 65 70 | theFold|ers..rep|
|00000810| 65 61 74 20 77 69 74 68 | 20 61 46 6f 6c 64 65 72 |eat with| aFolder|
|00000820| 20 69 6e 20 74 68 65 46 | 6f 6c 64 65 72 73 0d 09 | in theF|olders..|
|00000830| 09 69 66 20 61 6c 69 61 | 73 20 28 61 46 6f 6c 64 |.if alia|s (aFold|
|00000840| 65 72 20 61 73 20 73 74 | 72 69 6e 67 29 27 73 20 |er as st|ring)'s |
|00000850| 6b 69 6e 64 20 69 73 20 | 6e 6f 74 20 22 66 6f 6c |kind is |not "fol|
|00000860| 64 65 72 22 20 74 68 65 | 6e 0d 09 09 09 64 69 73 |der" the|n....dis|
|00000870| 70 6c 61 79 20 64 69 61 | 6c 6f 67 20 22 53 6f 72 |play dia|log "Sor|
|00000880| 72 79 2c 20 62 75 74 20 | 61 74 20 6c 65 61 73 74 |ry, but |at least|
|00000890| 20 6f 6e 65 20 6f 66 20 | 74 68 65 20 6f 62 6a 65 | one of |the obje|
|000008a0| 63 74 73 20 79 6f 75 20 | 64 72 6f 70 70 65 64 20 |cts you |dropped |
|000008b0| 6f 6e 20 74 68 69 73 20 | 61 70 70 6c 69 63 61 74 |on this |applicat|
|000008c0| 69 6f 6e 20 77 65 72 65 | 20 6e 6f 74 20 66 6f 6c |ion were| not fol|
|000008d0| 64 65 72 73 2e 20 20 50 | 6c 65 61 73 65 20 74 72 |ders. P|lease tr|
|000008e0| 79 20 61 67 61 69 6e 20 | 77 69 74 68 20 6f 6e 6c |y again |with onl|
|000008f0| 79 20 66 6f 6c 64 65 72 | 73 2e 22 20 62 75 74 74 |y folder|s." butt|
|00000900| 6f 6e 73 20 22 4f 4b 22 | 20 64 65 66 61 75 6c 74 |ons "OK"| default|
|00000910| 20 62 75 74 74 6f 6e 20 | 31 0d 09 09 09 72 65 74 | button |1....ret|
|00000920| 75 72 6e 0d 09 09 65 6e | 64 20 69 66 0d 09 09 6d |urn...en|d if...m|
|00000930| 79 20 61 75 74 6f 53 79 | 6e 63 28 74 68 65 46 6f |y autoSy|nc(theFo|
|00000940| 6c 64 65 72 73 29 0d 09 | 65 6e 64 20 72 65 70 65 |lders)..|end repe|
|00000950| 61 74 0d 65 6e 64 20 6f | 70 65 6e 0d 0d 6f 6e 20 |at.end o|pen..on |
|00000960| 61 75 74 6f 53 79 6e 63 | 28 74 68 65 46 6f 6c 64 |autoSync|(theFold|
|00000970| 65 72 73 29 0d 09 74 72 | 79 0d 09 09 74 65 6c 6c |ers)..tr|y...tell|
|00000980| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 20 22 46 69 | applica|tion "Fi|
|00000990| 6e 64 65 72 22 20 74 6f | 20 73 65 74 20 73 79 6e |nder" to| set syn|
|000009a0| 63 65 64 46 6f 6c 64 65 | 72 20 74 6f 20 6d 61 6b |cedFolde|r to mak|
|000009b0| 65 20 66 6f 6c 64 65 72 | 20 77 69 74 68 20 70 72 |e folder| with pr|
|000009c0| 6f 70 65 72 74 69 65 73 | 20 7b 6e 61 6d 65 3a 22 |operties| {name:"|
|000009d0| 53 79 6e 63 65 64 20 46 | 6f 6c 64 65 72 22 7d 0d |Synced F|older"}.|
|000009e0| 09 6f 6e 20 65 72 72 6f | 72 0d 09 09 2d 2d 74 68 |.on erro|r...--th|
|000009f0| 69 73 20 69 73 20 75 73 | 75 61 6c 6c 79 20 62 65 |is is us|ually be|
|00000a00| 63 61 75 73 65 2c 20 61 | 73 20 74 68 65 20 64 69 |cause, a|s the di|
|00000a10| 61 6c 6f 67 20 73 61 79 | 73 2c 20 73 6f 6d 65 20 |alog say|s, some |
|00000a20| 66 6f 6c 64 65 72 20 6e | 61 6d 65 64 20 27 53 79 |folder n|amed 'Sy|
|00000a30| 6e 63 65 64 20 46 6f 6c | 64 65 72 27 20 61 6c 72 |nced Fol|der' alr|
|00000a40| 65 61 64 79 20 65 78 69 | 73 74 0d 09 09 2d 2d 73 |eady exi|st...--s|
|00000a50| 6f 6d 65 74 69 6d 65 73 | 2c 20 74 68 6f 75 67 68 |ometimes|, though|
|00000a60| 2c 20 69 74 20 69 73 20 | 62 65 63 61 75 73 65 20 |, it is |because |
|00000a70| 79 6f 75 20 68 61 76 65 | 20 6d 61 64 65 20 61 20 |you have| made a |
|00000a80| 73 74 75 70 69 64 20 6d | 69 73 74 61 6b 65 2c 20 |stupid m|istake, |
|00000a90| 6c 69 6b 65 20 66 6f 72 | 67 65 74 74 69 6e 67 20 |like for|getting |
|00000aa0| 74 6f 20 2a 74 65 6c 6c | 20 74 68 65 20 46 69 6e |to *tell| the Fin|
|00000ab0| 64 65 72 2a 20 74 6f 20 | 64 6f 20 74 68 65 20 6d |der* to |do the m|
|00000ac0| 61 6b 69 6e 67 20 6f 66 | 20 6e 65 77 20 66 6f 6c |aking of| new fol|
|00000ad0| 64 65 72 73 0d 09 09 64 | 69 73 70 6c 61 79 20 64 |ders...d|isplay d|
|00000ae0| 69 61 6c 6f 67 20 22 53 | 6f 72 72 79 2c 20 62 75 |ialog "S|orry, bu|
|00000af0| 74 20 61 20 66 6f 6c 64 | 65 72 20 5c 22 53 79 6e |t a fold|er \"Syn|
|00000b00| 63 65 64 20 46 6f 6c 64 | 65 72 5c 22 20 61 6c 72 |ced Fold|er\" alr|
|00000b10| 65 61 64 79 20 65 78 69 | 73 74 2e 20 20 4d 6f 76 |eady exi|st. Mov|
|00000b20| 65 20 5c 22 53 79 6e 63 | 65 64 20 46 6f 6c 64 65 |e \"Sync|ed Folde|
|00000b30| 72 5c 22 20 6f 66 66 20 | 74 68 65 20 44 65 73 6b |r\" off |the Desk|
|00000b40| 74 6f 70 20 61 6e 64 20 | 74 68 65 6e 20 74 72 79 |top and |then try|
|00000b50| 20 61 67 61 69 6e 2e 22 | 20 62 75 74 74 6f 6e 73 | again."| buttons|
|00000b60| 20 22 4f 4b 22 20 64 65 | 66 61 75 6c 74 20 62 75 | "OK" de|fault bu|
|00000b70| 74 74 6f 6e 20 31 0d 09 | 09 72 65 74 75 72 6e 0d |tton 1..|.return.|
|00000b80| 09 65 6e 64 20 74 72 79 | 0d 09 6d 79 20 73 79 6e |.end try|..my syn|
|00000b90| 63 28 74 68 65 46 6f 6c | 64 65 72 73 2c 20 73 79 |c(theFol|ders, sy|
|00000ba0| 6e 63 65 64 46 6f 6c 64 | 65 72 29 0d 09 6d 79 20 |ncedFold|er)..my |
|00000bb0| 72 65 73 79 6e 63 28 74 | 68 65 46 6f 6c 64 65 72 |resync(t|heFolder|
|00000bc0| 73 2c 20 73 79 6e 63 65 | 64 46 6f 6c 64 65 72 29 |s, synce|dFolder)|
|00000bd0| 0d 09 6d 79 20 63 6c 65 | 61 6e 55 70 28 73 79 6e |..my cle|anUp(syn|
|00000be0| 63 65 64 46 6f 6c 64 65 | 72 29 0d 65 6e 64 20 61 |cedFolde|r).end a|
|00000bf0| 75 74 6f 53 79 6e 63 0d | 0d 6f 6e 20 73 79 6e 63 |utoSync.|.on sync|
|00000c00| 28 74 68 65 46 6f 6c 64 | 65 72 73 2c 20 73 79 6e |(theFold|ers, syn|
|00000c10| 63 65 64 46 6f 6c 64 65 | 72 29 0d 09 74 65 6c 6c |cedFolde|r)..tell|
|00000c20| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 20 22 46 69 | applica|tion "Fi|
|00000c30| 6e 64 65 72 22 0d 09 09 | 72 65 70 65 61 74 20 77 |nder"...|repeat w|
|00000c40| 69 74 68 20 61 46 6f 6c | 64 65 72 20 69 6e 20 74 |ith aFol|der in t|
|00000c50| 68 65 46 6f 6c 64 65 72 | 73 0d 09 09 09 2d 2d 74 |heFolder|s....--t|
|00000c60| 68 65 73 65 20 6e 65 78 | 74 20 74 77 6f 20 6c 69 |hese nex|t two li|
|00000c70| 6e 65 73 20 6d 61 6b 65 | 20 61 20 6c 69 73 74 20 |nes make| a list |
|00000c80| 6f 66 20 65 76 65 72 79 | 74 68 69 6e 67 20 28 66 |of every|thing (f|
|00000c90| 6f 6c 64 65 72 2c 20 66 | 69 6c 65 2c 20 61 70 70 |older, f|ile, app|
|00000ca0| 6c 69 63 61 74 69 6f 6e | 29 20 69 6e 20 74 68 65 |lication|) in the|
|00000cb0| 20 72 65 73 70 65 63 74 | 69 76 65 20 66 6f 6c 64 | respect|ive fold|
|00000cc0| 65 72 73 0d 09 09 09 2d | 2d 6e 6f 74 65 20 68 6f |ers....-|-note ho|
|00000cd0| 77 20 62 65 6c 6f 77 20 | 61 6e 20 61 6c 69 61 73 |w below |an alias|
|00000ce0| 20 6d 75 73 74 20 62 65 | 20 62 75 69 6c 74 20 75 | must be| built u|
|00000cf0| 73 69 6e 67 20 74 68 65 | 20 70 61 74 68 20 74 6f |sing the| path to|
|00000d00| 20 74 68 65 20 66 6f 6c | 64 65 72 20 74 68 61 74 | the fol|der that|
|00000d10| 20 77 61 73 20 67 6f 74 | 74 65 6e 20 69 6e 20 74 | was got|ten in t|
|00000d20| 68 65 20 61 72 67 75 6d | 65 6e 74 73 20 61 6e 64 |he argum|ents and|
|00000d30| 20 63 6f 6d 62 69 6e 69 | 6e 67 20 69 74 20 77 69 | combini|ng it wi|
|00000d40| 74 68 20 61 6e 20 69 74 | 65 6d 20 74 6f 20 66 6f |th an it|em to fo|
|00000d50| 72 6d 20 61 20 66 75 6c | 6c 20 61 6c 69 61 73 0d |rm a ful|l alias.|
|00000d60| 09 09 09 73 65 74 20 73 | 79 6e 63 65 64 46 6f 6c |...set s|yncedFol|
|00000d70| 64 65 72 49 74 65 6d 73 | 20 74 6f 20 6c 69 73 74 |derItems| to list|
|00000d80| 20 66 6f 6c 64 65 72 20 | 73 79 6e 63 65 64 46 6f | folder |syncedFo|
|00000d90| 6c 64 65 72 0d 09 09 09 | 73 65 74 20 61 46 6f 6c |lder....|set aFol|
|00000da0| 64 65 72 49 74 65 6d 73 | 20 74 6f 20 6c 69 73 74 |derItems| to list|
|00000db0| 20 66 6f 6c 64 65 72 20 | 61 46 6f 6c 64 65 72 0d | folder |aFolder.|
|00000dc0| 09 09 09 72 65 70 65 61 | 74 20 77 69 74 68 20 61 |...repea|t with a|
|00000dd0| 6e 49 74 65 6d 20 69 6e | 20 61 46 6f 6c 64 65 72 |nItem in| aFolder|
|00000de0| 49 74 65 6d 73 0d 09 09 | 09 09 69 66 20 61 6e 49 |Items...|..if anI|
|00000df0| 74 65 6d 20 69 73 20 6e | 6f 74 20 69 6e 20 73 79 |tem is n|ot in sy|
|00000e00| 6e 63 65 64 46 6f 6c 64 | 65 72 49 74 65 6d 73 20 |ncedFold|erItems |
|00000e10| 74 68 65 6e 0d 09 09 09 | 09 09 64 75 70 6c 69 63 |then....|..duplic|
|00000e20| 61 74 65 20 61 6c 69 61 | 73 20 28 28 61 46 6f 6c |ate alia|s ((aFol|
|00000e30| 64 65 72 20 61 73 20 73 | 74 72 69 6e 67 29 20 26 |der as s|tring) &|
|00000e40| 20 61 6e 49 74 65 6d 29 | 20 74 6f 20 73 79 6e 63 | anItem)| to sync|
|00000e50| 65 64 46 6f 6c 64 65 72 | 0d 09 09 09 09 65 6c 73 |edFolder|.....els|
|00000e60| 65 20 2d 2d 61 6e 49 74 | 65 6d 20 69 73 20 6e 6f |e --anIt|em is no|
|00000e70| 74 20 69 6e 20 73 79 6e | 63 65 64 46 6f 6c 64 65 |t in syn|cedFolde|
|00000e80| 72 49 74 65 6d 73 0d 09 | 09 09 09 09 69 66 20 61 |rItems..|....if a|
|00000e90| 6c 69 61 73 20 28 28 61 | 46 6f 6c 64 65 72 20 61 |lias ((a|Folder a|
|00000ea0| 73 20 73 74 72 69 6e 67 | 29 20 26 20 61 6e 49 74 |s string|) & anIt|
|00000eb0| 65 6d 29 27 73 20 6b 69 | 6e 64 20 69 73 20 22 66 |em)'s ki|nd is "f|
|00000ec0| 6f 6c 64 65 72 22 20 74 | 68 65 6e 0d 09 09 09 09 |older" t|hen.....|
|00000ed0| 09 09 2d 2d 6e 6f 74 65 | 20 68 6f 77 20 27 3a 27 |..--note| how ':'|
|00000ee0| 20 6d 75 73 74 20 62 65 | 20 61 64 64 65 64 20 61 | must be| added a|
|00000ef0| 66 74 65 72 20 61 6e 49 | 74 65 6d 20 73 6f 20 74 |fter anI|tem so t|
|00000f00| 68 61 74 20 69 74 20 69 | 73 20 61 20 66 6f 6c 64 |hat it i|s a fold|
|00000f10| 65 72 20 72 61 74 68 65 | 72 20 74 68 61 6e 20 61 |er rathe|r than a|
|00000f20| 20 66 69 6c 65 20 77 68 | 65 6e 20 61 73 20 61 6e | file wh|en as an|
|00000f30| 20 61 6c 69 61 73 0d 09 | 09 09 09 09 09 6d 79 20 | alias..|.....my |
|00000f40| 73 79 6e 63 28 7b 28 61 | 6c 69 61 73 20 28 28 61 |sync({(a|lias ((a|
|00000f50| 46 6f 6c 64 65 72 20 61 | 73 20 73 74 72 69 6e 67 |Folder a|s string|
|00000f60| 29 20 26 20 61 6e 49 74 | 65 6d 20 26 20 22 3a 22 |) & anIt|em & ":"|
|00000f70| 29 29 7d 2c 20 28 61 6c | 69 61 73 20 28 28 73 79 |))}, (al|ias ((sy|
|00000f80| 6e 63 65 64 46 6f 6c 64 | 65 72 20 61 73 20 73 74 |ncedFold|er as st|
|00000f90| 72 69 6e 67 29 20 26 20 | 61 6e 49 74 65 6d 20 26 |ring) & |anItem &|
|00000fa0| 20 22 3a 22 29 29 29 0d | 09 09 09 09 09 65 6c 73 | ":"))).|.....els|
|00000fb0| 65 20 69 66 20 61 6c 69 | 61 73 20 28 28 61 46 6f |e if ali|as ((aFo|
|00000fc0| 6c 64 65 72 20 61 73 20 | 73 74 72 69 6e 67 29 20 |lder as |string) |
|00000fd0| 26 20 61 6e 49 74 65 6d | 29 27 73 20 6d 6f 64 69 |& anItem|)'s modi|
|00000fe0| 66 69 63 61 74 69 6f 6e | 20 64 61 74 65 20 3e 20 |fication| date > |
|00000ff0| 61 6c 69 61 73 20 28 28 | 73 79 6e 63 65 64 46 6f |alias ((|syncedFo|
|00001000| 6c 64 65 72 20 61 73 20 | 74 65 78 74 29 20 26 20 |lder as |text) & |
|00001010| 61 6e 49 74 65 6d 29 27 | 73 20 6d 6f 64 69 66 69 |anItem)'|s modifi|
|00001020| 63 61 74 69 6f 6e 20 64 | 61 74 65 20 74 68 65 6e |cation d|ate then|
|00001030| 20 2d 2d 75 73 65 20 74 | 68 65 20 6e 65 77 65 73 | --use t|he newes|
|00001040| 74 20 6f 6e 65 0d 09 09 | 09 09 09 09 64 75 70 6c |t one...|....dupl|
|00001050| 69 63 61 74 65 20 61 6c | 69 61 73 20 28 28 61 46 |icate al|ias ((aF|
|00001060| 6f 6c 64 65 72 20 61 73 | 20 73 74 72 69 6e 67 29 |older as| string)|
|00001070| 20 26 20 61 6e 49 74 65 | 6d 29 20 74 6f 20 73 79 | & anIte|m) to sy|
|00001080| 6e 63 65 64 46 6f 6c 64 | 65 72 20 77 69 74 68 20 |ncedFold|er with |
|00001090| 72 65 70 6c 61 63 69 6e | 67 0d 09 09 09 09 09 65 |replacin|g......e|
|000010a0| 6e 64 20 69 66 0d 09 09 | 09 09 65 6e 64 20 69 66 |nd if...|..end if|
|000010b0| 0d 09 09 09 65 6e 64 20 | 72 65 70 65 61 74 0d 09 |....end |repeat..|
|000010c0| 09 65 6e 64 20 72 65 70 | 65 61 74 0d 09 65 6e 64 |.end rep|eat..end|
|000010d0| 20 74 65 6c 6c 0d 65 6e | 64 20 73 79 6e 63 0d 0d | tell.en|d sync..|
|000010e0| 6f 6e 20 72 65 73 79 6e | 63 28 74 68 65 46 6f 6c |on resyn|c(theFol|
|000010f0| 64 65 72 73 2c 20 73 79 | 6e 63 65 64 46 6f 6c 64 |ders, sy|ncedFold|
|00001100| 65 72 29 0d 09 74 65 6c | 6c 20 61 70 70 6c 69 63 |er)..tel|l applic|
|00001110| 61 74 69 6f 6e 20 22 46 | 69 6e 64 65 72 22 0d 09 |ation "F|inder"..|
|00001120| 09 72 65 70 65 61 74 20 | 77 69 74 68 20 61 46 6f |.repeat |with aFo|
|00001130| 6c 64 65 72 20 69 6e 20 | 74 68 65 46 6f 6c 64 65 |lder in |theFolde|
|00001140| 72 73 0d 09 09 09 2d 2d | 74 68 61 6e 6b 73 20 74 |rs....--|thanks t|
|00001150| 6f 20 4a 6f 68 6e 20 4c | 6f 75 63 68 20 66 6f 72 |o John L|ouch for|
|00001160| 20 68 65 6c 70 69 6e 67 | 20 77 69 74 68 20 74 68 | helping| with th|
|00001170| 69 73 20 70 61 72 74 20 | 6f 6e 20 74 68 65 20 61 |is part |on the a|
|00001180| 70 70 6c 65 73 63 72 69 | 70 74 2d 75 73 65 72 73 |pplescri|pt-users|
|00001190| 20 6d 61 69 6c 69 6e 67 | 20 6c 69 73 74 0d 09 09 | mailing| list...|
|000011a0| 09 73 65 74 20 61 46 6f | 6c 64 65 72 4e 61 6d 65 |.set aFo|lderName|
|000011b0| 20 74 6f 20 61 46 6f 6c | 64 65 72 27 73 20 6e 61 | to aFol|der's na|
|000011c0| 6d 65 0d 09 09 09 73 65 | 74 20 73 79 6e 63 65 64 |me....se|t synced|
|000011d0| 46 6f 6c 64 65 72 54 6f | 4d 6f 76 65 20 74 6f 20 |FolderTo|Move to |
|000011e0| 64 75 70 6c 69 63 61 74 | 65 20 73 79 6e 63 65 64 |duplicat|e synced|
|000011f0| 46 6f 6c 64 65 72 0d 09 | 09 09 73 65 74 20 70 61 |Folder..|..set pa|
|00001200| 72 65 6e 74 46 6f 6c 64 | 65 72 20 74 6f 20 73 79 |rentFold|er to sy|
|00001210| 6e 63 65 64 46 6f 6c 64 | 65 72 54 6f 4d 6f 76 65 |ncedFold|erToMove|
|00001220| 27 73 20 63 6f 6e 74 61 | 69 6e 65 72 0d 09 09 09 |'s conta|iner....|
|00001230| 73 65 74 20 73 79 6e 63 | 65 64 46 6f 6c 64 65 72 |set sync|edFolder|
|00001240| 54 6f 4d 6f 76 65 27 73 | 20 6e 61 6d 65 20 74 6f |ToMove's| name to|
|00001250| 20 61 46 6f 6c 64 65 72 | 4e 61 6d 65 0d 09 09 09 | aFolder|Name....|
|00001260| 6d 6f 76 65 20 70 61 72 | 65 6e 74 46 6f 6c 64 65 |move par|entFolde|
|00001270| 72 27 73 20 66 6f 6c 64 | 65 72 20 61 46 6f 6c 64 |r's fold|er aFold|
|00001280| 65 72 4e 61 6d 65 20 74 | 6f 20 61 46 6f 6c 64 65 |erName t|o aFolde|
|00001290| 72 27 73 20 63 6f 6e 74 | 61 69 6e 65 72 20 77 69 |r's cont|ainer wi|
|000012a0| 74 68 20 72 65 70 6c 61 | 63 69 6e 67 0d 09 09 65 |th repla|cing...e|
|000012b0| 6e 64 20 72 65 70 65 61 | 74 0d 09 65 6e 64 20 74 |nd repea|t..end t|
|000012c0| 65 6c 6c 0d 65 6e 64 20 | 72 65 73 79 6e 63 0d 0d |ell.end |resync..|
|000012d0| 6f 6e 20 63 6c 65 61 6e | 55 70 28 73 79 6e 63 65 |on clean|Up(synce|
|000012e0| 64 46 6f 6c 64 65 72 29 | 0d 09 64 65 6c 65 74 65 |dFolder)|..delete|
|000012f0| 20 73 79 6e 63 65 64 46 | 6f 6c 64 65 72 0d 65 6e | syncedF|older.en|
|00001300| 64 20 63 6c 65 61 6e 55 | 70 00 00 00 00 00 00 00 |d cleanU|p.......|
|00001310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001380| 00 00 01 00 00 00 01 b2 | 00 00 00 b2 00 00 00 5a |........|.......Z|
|00001390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001400| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001410| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001420| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001430| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001440| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001450| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001460| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001470| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001480| 00 00 00 78 00 00 00 00 | 00 08 00 00 00 00 00 00 |...x....|........|
|00001490| 00 00 00 00 00 00 00 00 | ff ff ff ff 00 00 00 34 |........|.......4|
|000014a0| 00 00 00 24 00 00 00 00 | 20 6f 00 04 a0 5f 20 6f |...$....| o..._ o|
|000014b0| 00 04 a1 28 a0 23 4e 75 | 43 54 6f 20 72 75 6e 20 |...(.#Nu|CTo run |
|000014c0| 74 68 69 73 20 73 63 72 | 69 70 74 20 61 70 70 6c |this scr|ipt appl|
|000014d0| 69 63 61 74 69 6f 6e 2c | 20 79 6f 75 20 6d 75 73 |ication,| you mus|
|000014e0| 74 20 66 69 72 73 74 20 | 69 6e 73 74 61 6c 6c 20 |t first |install |
|000014f0| 41 70 70 6c 65 53 63 72 | 69 70 74 2e 00 00 00 1a |AppleScr|ipt.....|
|00001500| 40 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |@.......|........|
|00001510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 14 00 2c |........|.......,|
|00001520| 00 07 01 d9 02 58 00 2b | 00 07 02 50 02 6d 00 00 |.....X.+|...P.m..|
|00001530| 00 00 00 00 01 00 00 00 | 01 b2 00 00 00 b2 00 00 |........|........|
|00001540| 00 5a 06 75 a9 28 03 96 | 00 00 00 1c 00 5a 00 02 |.Z.u.(..|.....Z..|
|00001550| 4e 4f 54 49 00 00 00 1a | 73 63 73 7a 00 00 00 26 |NOTI....|scsz...&|
|00001560| 57 50 6f 73 00 00 00 32 | 00 80 ff ff 50 00 00 00 |WPos...2|....P...|
|00001570| 06 75 b5 ac 00 00 ff ff | 00 00 00 7c 06 75 a9 5c |.u......|...|.u.\|
|00001580| 00 80 ff ff 00 00 00 9a | 06 75 a9 24 00 00 00 00 |........|.u.$....|
|00001590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+